<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>设备详情</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
</head>
<body>
  <div style="margin: 20px">
    <div class="layui-row form-row">
        <div class="layui-col-md6">
            <div class="layui-form-item">
                <div class="itemTr">专业名称:<span id="domainValue"></span></div>
            </div>
            <div class="layui-form-item">
                <div class="itemTr">设备名称:<span id="eventName"></span></div>
            </div>
            <div class="layui-form-item">
                <div class="itemTr">设备编号:<span id="eventCode"></span></div>
            </div>
            <div class="layui-form-item">
                <div class="itemTr">维修日期:<span id="maintainDate"></span></div>
            </div>
            <div class="layui-form-item">
                <div class="itemTr">维修人:<span id="maintainPerson"></span></div>
            </div>
            <div class="layui-form-item">
                <div class="itemTr">维修状态:<span id="taskStatus"></span></div>
            </div>
        </div>
        <div class="layui-col-md6">
            <div class="layui-form-item">
                <div class="itemTr">系统名称:<span id="systemValue"></span></div>
            </div>
            <div class="layui-form-item">
                <div class="itemTr">设备类型:<span id="eventType"></span></div>
            </div>
            <div class="layui-form-item">
                <div class="itemTr">车站名称:<span id="stationName"></span></div>
            </div>
            <div class="layui-form-item">
                <div class="itemTr">维修内容:<span id="maintainContent"></span></div>
            </div>
            <div class="layui-form-item">
                <div class="itemTr">维修方式:<span id="maintainWay"></span></div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="itemTr">描述:<span id="describe"></span></div>
        </div>
      </div>
    </div>
  <script src="../../layuiadmin/layui/layui.js"></script>  
  <script>
    function initData(data){
      layui.config({
        base: '../../layuiadmin/' //静态资源所在路径
      }).extend({
        index: 'lib/index' //主入口模块
        , my_send: '../myModules/my_send'
      }).use(['index', 'form','laydate','table','my_send'], function () {
        var $ = layui.$
          , form = layui.form
          ,laydate = layui.laydate
          ,table = layui.table
          , my_send = layui.my_send
          , http_proxy = layui.http_proxy;
          $('#domainValue').html(data.domain);
          $('#systemValue').html(data.systemName);
          $('#eventName').html(data.eventName);
          $('#eventCode').html(data.eventCode);
          $('#eventType').html(data.eventType);
          $('#stationName').html(data.stationName);
          $('#maintainDate').html(data.maintainDate)
          $('#maintainPerson').html(data.maintainPerson);
          $('#maintainContent').html(data.maintainContent);
          $('#maintainWay').html(data.maintainWay);
          $('#describe').html(data.describe);
          if(data.taskStatus === '0'){
            $('#taskStatus').html('已恢复');
          }else if(data.taskStatus === '1'){
            $('#taskStatus').html('处理中');
          }else if(data.taskStatus === '2'){
             $('#taskStatus').html('已搁置');
          }else{
            $('#taskStatus').html('已处理');
          }
        })
    }
  </script>
</body>
</html>